package com.mangguo.tingjian.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mangguo.tingjian.account.entity.Authority;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description TODO
 * @Author luhongcai
 * @Date 2019/11/13 20:37
 * @Version V1.0
 **/
@Mapper
public interface AuthorityMapper extends BaseMapper<Authority> {

    @Select("select * from authority where role_id=#{roleId} and dept_id=#{deptId} ")
    List<Authority> selectByRoleAndDept(@Param("roleId") Integer roleId,@Param("deptId") Integer deptId);

}
